import {Component, Input} from '@angular/core';
import {App} from "ionic-angular";
import {BaikelistinfoPage} from "../../pages/baikelistinfo/baikelistinfo";
import {DomSanitizer} from "@angular/platform-browser";

/**
 * Generated class for the BaikelistComponent component.
 *
 * See https://angular.io/api/core/Component for more info on Angular
 * Components.
 */
@Component({
  selector: 'baikelist',
  templateUrl: 'baikelist.html'
})
export class BaikelistComponent {

  @Input() listitembaike:any;

  constructor(public sanitizer:DomSanitizer,private app:App) {

  }
  querymore(uuid){
    //this.app.getRootNav().push(KepuPage);
    this.app.getRootNav().push(BaikelistinfoPage,{uuid:uuid});
  }

  assembleHTML(strHTML:any){
    return this.sanitizer.bypassSecurityTrustHtml(strHTML);
  }
}
